package com.apimarket.entity;

import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

/**
 * api接口实体类（此类里的字段在MySQL中为text类型，生成插件会单独讲这些类型字段单独成一个类，为了性能）
 *
 * @author yyc
 */
public class ApiInterfaceWithBLOBs extends ApiInterface {
    private String description;

//    @NotNull(message = "请求参数不能为空")
    private String requestParameters;


    private String responseParameters;

//    @NotNull(message = "响应示例不能为空")
    private String responseExample;

    private String response_pic_url;


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRequestParameters() {
        return requestParameters;
    }

    public void setRequestParameters(String requestParameters) {
        this.requestParameters = requestParameters;
    }

    public String getResponseParameters() {
        return responseParameters;
    }

    public void setResponseParameters(String responseParameters) {
        this.responseParameters = responseParameters;
    }

    public String getResponseExample() {
        return responseExample;
    }

    public void setResponseExample(String responseExample) {
        this.responseExample = responseExample;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ApiInterfaceWithBLOBs{");
        sb.append(super.toString());
        sb.append(", description='").append(description).append('\'');
        sb.append(", requestParameters='").append(requestParameters).append('\'');
        sb.append(", responseParameters='").append(responseParameters).append('\'');
        sb.append(", responseExample='").append(responseExample).append('\'');
        sb.append('}');
        return sb.toString();
    }

    public String getResponse_pic_url() {
        return response_pic_url;
    }

    public void setResponse_pic_url(String response_pic_url) {
        this.response_pic_url = response_pic_url;
    }
}